package nc.tb.wf.ui;

import javax.swing.DefaultCellEditor;
import javax.swing.JTextField;
import javax.swing.event.CellEditorListener;
import javax.swing.event.ChangeEvent;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;

import nc.ui.pub.beans.MessageDialog;
import nc.ui.pub.beans.UITablePane;

public class FlowAttrTablePane extends UITablePane {
	
	private JTextField textField = new JTextField();
	
	private DefaultCellEditor editor = new DefaultCellEditor(textField);
	
	public FlowAttrTablePane() {
		super();
		getTable().setModel(new FlowAttrTableModel());
		getTable().setCellEditor(editor);
	}
	public void loadData(IFlowGraph graph) throws Exception{
		FlowAttrTableModel model = new FlowAttrTableModel(graph);
		//model.addTableModelListener(this);
		getTable().setModel(model);
		getTable().removeColumn(getTable().getColumnModel().getColumn(2));
	}
	
}
